package com.freeLearning.boot.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freeLearning.boot.course.model.VO.CourseReviewPageVO;
import com.freeLearning.boot.course.model.entity.CourseReview;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CourseReviewMapper extends BaseMapper<CourseReview> {
    IPage<CourseReviewPageVO> queryPageByCourseId(Page<CourseReviewPageVO> page, Long courseId, Long userId, String sortKey);

    IPage<CourseReviewPageVO> queryPageByCourseIdNoUserId(Page<CourseReviewPageVO> page, Long courseId, Long userId, String sortKey);
}
